package com.ruoyi.project.jiaqin.wanttobuy.mapper;

import com.github.pagehelper.PageInfo;
import com.ruoyi.project.jiaqin.wanttobuy.domain.WantToBuy;

import java.util.List;

/**
 * 采购Mapper接口
 *
 * @author admin
 * @date 2020-12-25
 */
public interface WantToBuyMapper
{
    /**
     * 查询采购
     *
     * @param id 采购ID
     * @return 采购
     */
    public WantToBuy selectWantToBuyById(String id);

    /**
     * 查询采购列表
     *
     * @param wantToBuy 采购
     * @return 采购集合
     */
    public List<WantToBuy> selectWantToBuyList(WantToBuy wantToBuy);

    /**
     * 新增采购
     *
     * @param wantToBuy 采购
     * @return 结果
     */
    public int insertWantToBuy(WantToBuy wantToBuy);

    /**
     * 修改采购
     *
     * @param wantToBuy 采购
     * @return 结果
     */
    public int updateWantToBuy(WantToBuy wantToBuy);

    /**
     * 删除采购
     *
     * @param id 采购ID
     * @return 结果
     */
    public int deleteWantToBuyById(String id);

    /**
     * 批量删除采购
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWantToBuyByIds(String[] ids);

    public List<WantToBuy> getFocusOnBuying(String memberId);

    public WantToBuy findWantToBuyById(String id);

    public PageInfo<WantToBuy> getWantToBuyListByMemberId(Integer pageNum, Integer pageSize, String memberId);

    public List<WantToBuy> getWantToBuyListByMemberId2(String memberId);

    public List<WantToBuy> getWantToBuyNumByMemberId(String memberId);
}
